package org.geektimes.configuration.source;

import java.util.Map;

/**
 * 操作系统环境变量
 * @author lanxing
 * @date 2021/3/18 17:15
 */
public class OperatingSystemEnvironmentVariablesConfigSource extends MapBasedConfigSource {


    public OperatingSystemEnvironmentVariablesConfigSource() {
        super("Operating system environment variables", 300);
        initSource();
    }

    @Override
    protected void prepareConfigData(Map configData) throws Throwable {
        configData.putAll(System.getenv());
    }
}
